<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
      <div align="right"> <a href="./deconnexion.php">Déconnexion</a></div>
      <link rel="stylesheet" href="./formCSS.css">
       <?php 
       include './Manager.php';
       $db = mysql_connect("localhost", "root", "root");
                mysql_selectdb("projet2", $db); 
                $m1 = new Manager();
                $m1->PassageTache();
                $sql10 = mysql_query("select tache from modification where id='tache'");
                $r = mysql_fetch_array($sql10);
                $var1 = $r['tache'];
                $sql11 = mysql_query("select * from tache where nomtache='$var1' ");
                $r1 = mysql_fetch_array($sql11);
                ?>
      <center>
          <br><br><br>
 <fieldset style="border:solid 1px black; padding:20px; width:600px; color:midnightblue; "><legend>modification tâche</legend>
              <table border="0">
        <form name="f34"  method="POST">
          <tr><td>  nom tache</td><td><input type="text" name="nomtache2" value="<?php echo $r1['nomtache'] ?>"> </td></tr>
           <tr><td>  pourcentage d'affectation</td><td> <input type="number" name="pourcentagetache2" value="<?php echo $r1['pourcentage'] ?>"></td></tr>
          <tr><td>   date cloture</td><td> <input type="date" name="datecloturetache2" value="<?php echo $r1['datecloture'] ?>"></td></tr>
          <tr><td>   etat de  la tache</td><td> <SELECT name="etattache" size="1">
                <OPTION>en cours </option>
                <OPTION>en attente</option>
                <OPTION>en test</option>
                <OPTION>arreté</option>
                <OPTION>suspension</option>
            </SELECT> </td></tr>
          
           <tr><td>  collaborateur</td><td><select name="listcol2" size=1> 

                <?php
               
                $sql = mysql_query("select login from collaborateur");
                while ($row = mysql_fetch_array($sql)) {
                    echo '<option value="' . $row['login'] . '">' . $row['login'] . '</option>';
                }
                ?>


            </select></td></tr>
           <tr><td colspan="2"><br><br><br>  <textarea rows="5" cols="200" name="commentaire"> rédigez votre commentaire ici ....</textarea> </td></tr>
          <tr><td><br><br><br> <input type="submit" value="modifier"> </td><td> </td></tr>
        </form>
              </table>
 </fieldset>
<?php

$m = new Manager();
$m->ModifierTache();
?>
      </center>
    </body>
</html>
